package com.example.cdctestsystem.mapper;

import com.example.cdctestsystem.pojo.Knowledge;

import java.util.List;

public interface KnowledgeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Knowledge record);

    int insertSelective(Knowledge record);

    Knowledge selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Knowledge record);

    int updateByPrimaryKey(Knowledge record);

    List<Knowledge> getAllKnowledge(String content);

    Knowledge getKnowledgeById(int knowledgeId);

}